home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / Preditor 2.0 / Preditor Folder / LDC Source / Rez.ldf < prev   
Encoding:
Text File  |  1990-02-26  |  1.2 KB  |  57 lines  |  [TEXT/TCEd]

  1. #
  2. #    Rez.ldf
  3. #
  4. #    Copyright © 1989 Blayne Puklich.  All Rights Reserved.
  5. #
  6. #    Written by: Blayne Puklich.
  7. #
  8. #    Description
  9. #    MPW Rez language definition.
  10. #
  11. #    Created: Tuesday, August 29, 1989
  12. #
  13.  
  14. LANGUAGE Rez
  15.  
  16. DESCRIPTION "MPW Rez Resource Language written by Blayne Puklich" \
  17.             "Tuesday, August 29, 1989"
  18.  
  19. EXTENSION .r
  20.  
  21. COMMENT /* */        60
  22. COMMENT ONELINE //    '¬'
  23.  
  24. BRACKET { }
  25. BRACKET ( )
  26. BRACKET [ ]
  27.  
  28. QUOTE ' '
  29. QUOTE " "
  30.  
  31. ESCAPE '\'
  32.  
  33. # Key words
  34. RESERVED    array change data delete fill include read resource switch type
  35. # Resource modifiers
  36. RESERVED    appHeap sysHeap \
  37.             nonPurgeable purgeable \
  38.             unLocked locked \
  39.             unProtected protected \
  40.             nonPreload preLoad \
  41.             unChanged changed
  42. # Base types
  43. RESERVED    bitstring boolean byte char cstring integer longint point pstring rect \
  44.             string wstring
  45. # Base type modifiers
  46. RESERVED    align binary decimal hex literal octal unsigned
  47.  
  48. TEMPLATES
  49.     Array        -> 'array ' ^ ' {' [1] ^ ';' [-1] '};'
  50.     Change        -> "change '" ^ "' to '" ^ "';"
  51.     Data        -> "data '" ^ "' (" ^ ') {' [1] ^ [-1] '};'
  52.     Delete        -> "delete '" ^ "';"
  53.     Include        -> 'include "' ^ '";'
  54.     Resource    -> "resource '" ^ "' (" ^ ") {" [1] ^ [-1] "};"
  55.     Switch        -> 'switch {' [0] 'case ' ^ ':' [1] ^ [-1] '};'
  56.     Type        -> "type '" ^ "' {" [1] ^ [-1] '};'
  57.